//
// Created by yan on 7/7/17.
//

#ifndef UPLADSYS_UPLOADBASE_H
#define UPLADSYS_UPLOADBASE_H

#include <sys/bSysNode.h>
#include <iostream>

#include "bUploadMod.h"

class uploadBase : public bSysNode{

public:
    uploadBase(std::string name);

    int addUploadDevice(std::string deviceName);

    virtual int start() = 0;

    virtual int initcfg() = 0;

    virtual int end() = 0;

protected:

    virtual ssize_t sendData(void* buf,size_t count);

    virtual ssize_t recvData(void* buf,size_t count);

    virtual int connect();

    bUploadMod * uploadDev;

};


#endif //UPLADSYS_UPLOADBASE_H
